Defining the Loading Order of Your Extension
You also need to include an extension load ('load'
) resource for your printing extension to tell QuickDraw GX the default value that specifies where to load your extension into the printing message chain. If you have one or more message overrides that prefer to handle a message before or after other handlers, you can specify that in
this resource. The value that you define in your extension load resource specifies the default loading order for your extension when it is first added to the system. The user can modify the loading order of extensions by using the Extension Setup dialog box.
The constants for the values that you can specify in your extension load resource are shown in Table 2-7.
- Note
- The value that you specify in the extension load resource for your extension provides a default. It is used by QuickDraw GX as a hint. Because the user can change the order, you do not have any guarantee regarding the load order of your extension.
![]()
The extension load resource for the background picture printing extension is shown in Listing 2-25.
Listing 2-25 The extension load resource for the background picture extension
resource gxExtensionLoadType (gxExtensionLoadID,sysHeap,purgeable) { gxExtensionLoadFirst };The background picture extension draws the background picture on each page after the page has been fully composed. Thus, this printing extension should be loaded first in the message chain, which means that it receives messages after all other message handlers. Then the printer driver and any other message handler can modify the page contents at despool time prior to the background picture being drawn.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help